package com.example.domain;

import lombok.Data;
import java.sql.Timestamp;

@Data
public class Order {
    private int id;
    private String order_no;
    private int user_id;
    private double total_amount;
    private int product_count; // 新增字段：商品总数量
    private int status; // 0-待支付，1-已支付，2-已发货，3-已完成，4-已取消
    private String receiver_name;
    private String receiver_phone;
    private String receiver_address;
    private String payment_method;
    private Timestamp payment_time;
    private Timestamp delivery_time;
    private Timestamp complete_time;
    private Timestamp created_at;
    private Timestamp updated_at;
}